<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master"Inherits="System.Web.Mvc.ViewPage<TemplateWeb.Models.ViewModels.GroupViewModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	SelectQuanLy
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent1" runat="server">
	<span class="AdminTitle" style="color:#cc0000;">QuanLy Management</span>
	(<a href="<%= Url.Action("Index", "Home") %>" class="AdminPageText">
	<%= WebConfiguration.SiteName  %>
	</a>)
	<br />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent2" runat="server">
	<div id="PartialDiv">
		<% Html.RenderPartial("Templates/TH_ListQuanLy", Model); %>
	</div>
	<% using (Ajax.BeginForm("InsertQuanLy", "Admin", new AjaxOptions { OnBegin = "ValidateQuanLy", OnComplete = "jsonAdd_OnComplete" }))
	{ %>
		<input type="hidden" name="QuanLy_OwnerRole" value="<%= Roles.GetRolesForUser(Page.User.Identity.Name)[0] %>" />
		<div style="padding-top: 40px">
			<span style="font-size:18px; font-weight:bold;">Add New QuanLy</span>
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="AdminPageText">
				<tbody>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">UserName: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<input type="text" name="QuanLy_UserName" />
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">Password: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<input type="password" name="QuanLy_Password" />
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">Email: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<input type="text" name="QuanLy_Email" />
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">Role: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.DropDownList("QuanLy_Role", new SelectList(Roles.GetAllRoles())) %>
							</div>
						</td>
					</tr>
					<tr>
						<td height="20" style="width: 130px">
						</td>
						<td height="20">
							<div align="left">
								<br/>
									<input type="submit" value="Add New" />
								<p>
								</p>
							</div>
						</td>
					</tr>
				</tbody>
			</table>
		</div>
	<% } %>
</asp:Content>
